﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using DailyDiet.Models;

namespace DailyDiet.Services
{
    /// <summary>
    /// 获取菜品图片
    /// </summary>
    public interface IDietPictureService {
        /// <summary>
        /// 获取一个菜品的图片
        /// </summary>
        /// <param name="dietId">菜品ID</param>
        /// <returns></returns>
        Task<byte[]> GetOneDietPictureAsync(Diet diet);

        /// <summary>
        /// 获取多个菜品的图片
        /// </summary>
        /// <param name="diets">菜品集合</param>
        /// <returns></returns>
        Task<Dictionary<int, byte[]>> GetDietPicturesAsync(List<Diet> diets);

        bool IsStorageInLocalFile(int dietId);
    }
}
